/**
 * Created by Administrator on 2016/1/25.
 */
$(function(){
    /*
    * 移动端按钮点击交互效果
    * */
    document.body.addEventListener('touchstart', function () {});

        bannner_height("banner_height",31/72);
        bannner_height("writer_height",41/90);
        bannner_height("works_a",29/72);
        bannner_height("zy_a",29/72);
        bannner_height("sort_a",29/72);
        bannner_height("goods_height",516/720);
        bannner_height("singel_a",29/72);
        bannner_height("center_top",472/720);
    $(window).resize(function(){
        bannner_height("banner_height",31/72);
        bannner_height("writer_height",41/90);
        bannner_height("works_a",29/72);
        bannner_height("zy_a",29/72);
        bannner_height("sort_a",29/72);
        bannner_height("goods_height",516/720);
        bannner_height("singel_a",29/72);
        bannner_height("center_top",472/720);
    })
    /*
     * banner图高度
     * */
    function bannner_height(css_demo,proportion){
        var width = $("."+css_demo+"").width();
        var height = width * proportion;
        $("."+css_demo+"").height(height)
    }






})